# Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer:
pkgname=spin
pkgver=6.5.2
_pkgver=${pkgver//./}
pkgrel=0
pkgdesc="Tool for formal verification of distributed software systems"
options="!check" # No testsuite
url="http://spinroot.com/"
arch="x86 x86_64 ppc64le"
license="BSD-3-Clause"
makedepends="bison"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nimble-code/Spin/archive/version-$pkgver.tar.gz"
builddir="$srcdir/Spin-version-$pkgver/Src"

build() {
	make
}

package() {
	install -d "$pkgdir"/usr/share/man/man1
	install -d "$pkgdir"/usr/bin
	install -m644 ../Man/spin.1 "$pkgdir"/usr/share/man/man1
	install -m755 spin "$pkgdir"/usr/bin
}

sha512sums="ff1d378076995fa5a8b66dd31d19d8bad6296b968183180251d267c926c20775edda927a31f466199e01231f6233c3a5166fd51ec44b02d570070e857d8ba7f9  spin-6.5.2.tar.gz"
